#ifndef __SCNS_ILI9481_H__
#define __SCNS_ILI9481_H__

#include "ScnsConfig.h"

#if defined(SCNS_ILI9481_ENABLE)&&SCNS_ILI9481_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspIli9481.h"
#include "ScnsLcd.h"

extern ScnsStatus scnsIli9481Init(ScnsIli9481Enum stn);
extern ScnsStatus scnsIli9481WriteColor(ScnsIli9481Enum ilN,ScnsColorRgb565 color[],uint32 n,uint8 last,ScnsLock*lock);
extern ScnsStatus scnsIli9481ReadColor(ScnsIli9481Enum ilN,uint8 color[],uint32 n,uint8 last,ScnsLock*lock);
extern ScnsStatus scnsIli9481SetAddress(ScnsIli9481Enum stn,Point plu,Point prd,uint8 write);
extern Point scnsIli9481GetBorder(ScnsIli9481Enum stn);
extern ScnsStatus scnsIli9481SetBackgroundLight(ScnsIli9481Enum stn,ScnsLcdBackgroundLightStatus status);
extern ScnsStatus scnsIli9481AsyncCallback(ScnsIli9481Enum ilN);

#define scnsIli9481LcdPhysicalConfig(xx,yy)  {.x=(xx),.y=(yy),.fullScreen=0,.writeColorFormat=SCNS_COLOR_FORMAT_RGB565,.readColorFormat=SCNS_COLOR_FORMAT_RGB666_P222}

#endif
#endif
